{% extends "layout.html" %}
{% block body %}
    {% if error %}<p class=error><strong>Error:</strong> {{ error }}{% endif %}
    <form action="{{ url_for('init_contacts',method='add') }}" method=post class=add-contact>
      <dl>
        <dt>Compagny name:
        <dd><input type=text size=30 name=compagnyName>
        <dt>Phone :
        <dd><input type=text size=30 name=phone>
        <dd><input type=submit value=add>
      </dl>
    </form>
  <ul class=contacts>
  {% for contact in contacts %}
    <li><h2>{{ contact.compagnyName }}</h2>{{ contact.phone }}
  {% else %}
    <li><em>Unbelievable.  No entries here so far</em>
  {% endfor %}
  </ul>
{% endblock %}